#include"SegmentTree.h"
#include<iostream>
using namespace std;

vector<int> nums = {0,  0,0,0,0,0,  4,9,0,10,0};
int main() {
	SegmentTree<int> tree(1, 10,nums);

	tree.UpdateTheTree(1, 5, -10);
	cout << "Updated pos:1-5 val:10\n";
	tree.Traversal();

	tree.InsertToTree(4,100);
	cout << "Inserted pos:4 val:9\n";
	tree.Traversal();
}